package com.rotsel.mh3udb.app.lists;

import java.util.HashMap;
import java.util.Map;
import com.rotsel.mh3udb.app.*;
import com.rotsel.mh3udb.app.models.*;

public final class WeaponTypeList {
    private static Map<Integer, WeaponTypeModel> weaponTypeMap;

    private static Map<Integer, WeaponTypeModel> getWeaponTypeMap(){
        if(weaponTypeMap == null){
            weaponTypeMap = new HashMap<Integer, WeaponTypeModel>(12);
            weaponTypeMap.put(1, new WeaponTypeModel(1,  "Sword and Shield", "SnS", R.drawable.sns_icon));
            weaponTypeMap.put(2, new WeaponTypeModel(2,  "Dual Swords", "DS", R.drawable.ds_icon));
            weaponTypeMap.put(3, new WeaponTypeModel(3,  "Light Bowgun", "LBG", R.drawable.lbg_icon));
            weaponTypeMap.put(4, new WeaponTypeModel(4,  "Heavy Bowgun", "HBG", R.drawable.hbg_icon));
            weaponTypeMap.put(5, new WeaponTypeModel(5,  "Bow", "Bow", R.drawable.bow_icon));
            weaponTypeMap.put(6, new WeaponTypeModel(6,  "Great Sword", "GS", R.drawable.gs_icon));
            weaponTypeMap.put(7, new WeaponTypeModel(7,  "Long Sword", "LS", R.drawable.ls_icon));
            weaponTypeMap.put(8, new WeaponTypeModel(8,  "Lance", "L", R.drawable.lance_icon));
            weaponTypeMap.put(9, new WeaponTypeModel(9,  "Gunlance", "GL", R.drawable.gl_icon));
            weaponTypeMap.put(10, new WeaponTypeModel(10,  "Hammer", "H", R.drawable.hammer_icon));
            weaponTypeMap.put(11, new WeaponTypeModel(11,  "Hunting Horn", "HH", R.drawable.hh_icon));
            weaponTypeMap.put(12, new WeaponTypeModel(12,  "Switch Axe", "SA", R.drawable.sa_icon));
        }
        return weaponTypeMap;
    }
	
	public static WeaponTypeModel getWeaponTypeById(int key){
		return getWeaponTypeMap().get(key);
	}

    public static int size(){
        return 12;
    }

    public static String getWeaponTypeNameById(int weaponTypeId) {
        return getWeaponTypeById(weaponTypeId).getName();
    }
}
